cURL Error #:URL rejected: Malformed input to a URL function